{include file="index/head" /}
<div class="box">
  <form method="post" action="{:url('dels')}" id="listform" data-type=ajax>
    <div class="box-head">
      <ul class="search">
        <li><a href="{:url('addprofessional')}" class="btn"><i class="icon-plus-square-o"></i>添加专业</a></li>
        <li><span>搜索：</span></li>
        <li><span>学院名称：</span>
          <select name="school_id" onchange="sycms.search('{:url('professional')}')">
            <option value="0">请选择分类</option>                
            <{volist name="school" id="vo"}               
            <option value="{$vo.id}">{$vo.school_name}</option>   
            {/volist} 
          </select>
        </li>
        <li><span>类型：</span>
          <select name="status" onchange="sycms.search('{:url('professional')}')">
            <option value="0">请选择分类</option>                
            <option value="1">自学考试</option> 
            <option value="2">成人高考</option>
            <option value="3">网教教育</option> 
            <option value="4">国开电大</option>    
            <option value="5">同等学力申硕</option> 
          </select>
        </li>
        <li>
          <button type="button" class="btn" onclick="sycms.search('{:url('professional')}')"><i class="icon-search"></i> 搜索</button>
        </li>
      </ul>
      <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a>
    </div>
    <table class="table">
      <tr>
        <th>ID</th>
        <th>学院名称</th>
        <th>院校类型</th>
        <th>专业名称</th>
        <th>层次</th>
        <th>学制</th>
        <th>是否推荐</th>
        <th>创建时间</th>
        <th width="350">操作</th>
      </tr>
      {volist name="list" id="vo"}
      <tr>
        <td>{$vo.id}</td>
        <td>{$vo.school_name}</td>
        <td>{switch vo.type }
          {case 2}成考院校{/case}
          {case 1}自考院校{/case}
          {case 3}网教院校{/case}
          {case 4}国开电大{/case}
          {default /}同等学力申硕
      {/switch}</td>
        <td>{$vo.professional_title}</td>
        <td>
          {switch vo.level }
            {case 1 }高起专{/case}
            {case 2}专升本{/case}
            {case 3}专科专业{/case}
            {default /}本科专业
          {/switch}
        </td>
        <td>{$vo.year}</td>  
        <td>
          {switch vo.hot }
            {case 1 }<font color="#4CD964">推荐</font>{/case}
            {case 2}<font color="#ff0000">热门</font>{/case}
            {default /}--
          {/switch}
         </td>  
        <td>{$vo.creat_time}</td>
        <td>
          <a href="{:url('addprofessional',['id'=>$vo.id])}" class="btn"><i class="icon-edit"></i> 编辑</a>
          <a href="javascript:void(0);" onclick="sycms.del('{:url('delprofessional',['id'=>$vo.id])}')" class="btn red"><i class="icon-trash-o"></i> 删除</a>
        </td>
      </tr>
      {/volist}
      <tr>
        <td colspan="10"><div class="page">{$page}</div></td>
      </tr>
    </table>
  </form>
</div>

